package com.travel.travelServer.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.travel.travelServer.utils.BaseEntity;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * (Permission)表实体类
 *
 * @author makejava
 * @since 2023-10-24 16:42:30
 */
@SuppressWarnings("serial")
@Data
@Accessors(chain = true)
public class Permission extends BaseEntity<Permission> {

    @JsonFormat(shape=JsonFormat.Shape.STRING)
    private Long pid;

    private String name;

    private String metaName;

    private String level;

    private Integer type;

    private Integer status;

    private Integer orders;

    private String permissionValue;

    private String url;

    private String icon;

    @TableField(exist = false)
    private List<Permission> sonPermissionList;

}
